-- GENERATED SPELL FOR [Conquest Hold Skirmisher] --


function spell0_27456(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27456', 618, 1)
end

function spell1_27456(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27456', 10349, 1)
end

function spell2_27456(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27456', 5312, 1)
end

function Sorts_27456(pUnit, Event)
local choix_sorts_27456 = math.random(0, 2)
if choix_sorts_27456 == 0 then
pUnit:RegisterEvent('spell0_27456', 1, 1)
end
if choix_sorts_27456 == 1 then
pUnit:RegisterEvent('spell1_27456', 1, 1)
end
if choix_sorts_27456 == 2 then
pUnit:RegisterEvent('spell2_27456', 1, 1)
end
end

function mob27456_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27456', math.random(1500, 3000), 1)
end

function mob27456_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27456_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27456_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27456, 1, 'mob27456_Action')
RegisterUnitEvent(27456, 2, 'mob27456_Leave')
RegisterUnitEvent(27456, 3, 'mob27456_Kill')
RegisterUnitEvent(27456, 4, 'mob27456_Die')
